package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.ProcessStep;
import com.nbsaas.boot.manufacturing.api.domain.request.ProcessStepRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 工艺步骤请求对象转换成实体对象
*/

public class ProcessStepEntityConvert  implements Converter<ProcessStep, ProcessStepRequest> {

    @Override
    public ProcessStep convert(ProcessStepRequest source) {
        ProcessStep result = new ProcessStep();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

